/*
  ODBuzzer.h - 
*/
#ifndef ODBuzzer_h
#define ODBuzzer_h

#include "ODPort.h"
#include "WProgram.h"

const uint16_t     LONG_BEEP = 2000;
const uint16_t     SHORT_BEEP = 500;

class Buzzer {
  public:
    Buzzer();
    void init(uint8_t pin);
    void beep(uint16_t ms);
    void service();
  private:
    Port _port;
    unsigned long _stopTime;
};

#endif